/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mzm.ui.admin;

import java.awt.BorderLayout;
import java.util.List;

import dnl.util.ui.OkDialog;

/**
 * 
 * @author daniel
 */
public class NewCategoryDialog extends OkDialog {

	private NewCategoryPanel newCategoryPanel = new NewCategoryPanel();

	public NewCategoryDialog(java.awt.Frame parent, boolean modal) {
		super(parent, "New Category", modal);
		this.add(newCategoryPanel, BorderLayout.CENTER);
	}

	public void setParentsList(List<String> parents) {
		newCategoryPanel.setParentsList(parents);
	}

	public String getCategoryName() {
		return newCategoryPanel.getCategoryName();
	}

	public String getParentCategory() {
		return newCategoryPanel.getParentCategory();
	}

	public void clear() {
		newCategoryPanel.clear();
	}

}
